// 封装的是所有和组织架构相关的接口请求方法
import http from '@/utils/request'

// export function reqGetDepartments() {
//   return http({
//     url: '/company/department'
//   })
// }
/**
 * 获取部门列表
 */
export const reqGetDepartments = () => {
  return http({
    method: 'get',
    url: '/company/department'
  })
}
/**
 * 根据id删除部门
 */
export const reqDelDepartment = (id) => {
  return http({
    method: 'delete',
    url: `/company/department/${id}`
  })
}
